package com.gxa.luo.controller;


import com.gxa.common.base.RespResult;
import com.gxa.luo.service.FinancialPaymentDetailsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.Date;


@RestController
@RequestMapping(value = "/PaymentDetails")
public class PaymentDetailsController {

    @Autowired
    private FinancialPaymentDetailsService financialPaymentDetailsService;


    //收款计划-全部
    @GetMapping("/selCollectionByTime")
    public RespResult selCollectionByTime(String orderId,String starTime, String endTime){

        return financialPaymentDetailsService.selCollectionByTime(orderId,starTime,endTime);
    }
    //收款计划-已收款
    @GetMapping("/selFinishCollectionByTime")
    public RespResult selFinishCollectionByTime(String orderId,String starTime, String endTime){

        return financialPaymentDetailsService.selFinishCollectionByTime(orderId,starTime,endTime);
    }
    //收款计划-未收款
    @GetMapping("/selUnfinCollectionByTime")
    public RespResult selUnfinCollectionByTime(String orderId,String starTime, String endTime){

        return financialPaymentDetailsService.selUnfinCollectionByTime(orderId,starTime,endTime);
    }

    //收款详情
    @GetMapping("/allPayment")
    public RespResult allPayment(){


        return financialPaymentDetailsService.allPayment();
    }

    //资金流水-全部
    @GetMapping("/selMoneyByTime")
    public RespResult selMoneyByTime(String starTime, String endTime){

        return financialPaymentDetailsService.selMoneyByTime(starTime,endTime);
    }
    //资金流水-收款
    @GetMapping("/selFinishMoneyByTime")
    public RespResult selFinMoneyByTime(String starTime, String endTime){

        return financialPaymentDetailsService.selFinMoneyByTime(starTime,endTime);
    }
    //资金流水-付款
    @GetMapping("/selUnfinMoneyByTime")
    public RespResult selUnfinMoneyByTime(String starTime, String endTime){

        return financialPaymentDetailsService.selUnfinMoneyByTime(starTime,endTime);
    }


    //付款计划
    @GetMapping("/paymentPlan")
    public RespResult  paymentPlan(String orderId,String starTime, String endTime){

        return financialPaymentDetailsService.paymentPlan(orderId,starTime,endTime);
    }



}
